import request from '@/utils/request'

export const getAllSessions = (data) => {
    return request({
        url: '/session/list',
        method: 'post',
        data,
    })
}
export const getLimitSessions = (data) => {
    return request({
        url: '/session/listlimit',
        method: 'post',
        data,
    })
}
export const getSessionContent = (data) => {
    return request({
        url: '/session/sessioncontent',
        method: 'post',
        data,
    })
}

export const addSession = (data) => {
    return request({
        url: '/session/add',
        method: 'post',
        data,
    })
}

export const updateSession = (data) => {
    return request({
        url: '/session/update',
        method: 'post',
        data,
    })
}

export const deleteSession = (data) => {
    return request({
        url: '/session/delete',
        method: 'post',
        data,
    })
}

export const clearAllSession = (data) => {
    return request({
        url: '/session/clearAll',
        method: 'post',
        data,
    })
}